project(LenovoTest)

include_directories(${CMAKE_CURRENT_SOURCE_DIR})

add_library(lenovo_test "lenovo_object.cpp" "screen_template.cpp")
target_link_libraries(lenovo_test PUBLIC mygl)

add_executable(VideoScreenFlash "VideoScreen/flash.cpp" )
target_link_libraries(VideoScreenFlash lenovo_test) 

add_executable(VideoScreenPostFlash "VideoScreen/flash_with_post.cpp" )
target_link_libraries(VideoScreenPostFlash lenovo_test) 

add_executable(ContentScreenFlash "ContentScreen/flash.cpp" )
target_link_libraries(ContentScreenFlash lenovo_test) 

add_executable(VideoScreenTransition "VideoScreen/transition.cpp" )
target_link_libraries(VideoScreenTransition lenovo_test) 

add_executable(ContentScreenTransition "ContentScreen/transition.cpp" )
target_link_libraries(ContentScreenTransition lenovo_test) 

add_executable(ContentScreenSideBySide "ContentScreen/side_by_side.cpp" )
target_link_libraries(ContentScreenSideBySide lenovo_test) 

#install
set(INSTALL_RESOURCES ${PROJECT_ROOT}/resources/videos/whiteboard.mp4
					  ${PROJECT_ROOT}/resources/videos/WIN_20221108_15_59_00_Pro.mp4
)

install(TARGETS VideoScreenFlash)
install(TARGETS ContentScreenFlash)
install(FILES ${INSTALL_RESOURCES} DESTINATION resources/video)